home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / onboard / scripts / switchButtons.py < prev    next >
Text File  |  2009-10-01  |  218b  |  7 lines

  1. import gconf
  2.  
  3. def run():
  4.     gconfClient = gconf.client_get_default()
  5.     b = gconfClient.get_bool("/desktop/gnome/peripherals/mouse/left_handed")
  6.     gconfClient.set_bool("/desktop/gnome/peripherals/mouse/left_handed", not b)
  7.